export var routes = [
    {
        id: "home",
        name: "首页",
        path: "/",
        loader: "./components/home.js",
        children: [
            {
                id: "good1",
                name: "商品1",
                path: "/goods/good1",
                loader: "./components/goodpages/good1.js",
                children: null,
            },
            {
                id: "good2",
                name: "商品2",
                path: "/goods/good2",
                loader: "./components/goodpages/good2.js",
                children: null,
            },
            {
                id: "good3",
                name: "商品3",
                path: "/goods/good3",
                loader: "./components/goodpages/good3.js",
                children: null,
            }, {
                id: "good4",
                name: "商品4",
                path: "/goods/good4",
                loader: "./components/goodpages/good4.js",
                children: null,
            }, {
                id: "good5",
                name: "商品5",
                path: "/goods/good5",
                loader: "./components/goodpages/good5.js",
                children: null,
            }, {
                id: "good6",
                name: "商品6",
                path: "/goods/good6",
                loader: "./components/goodpages/good6.js",
                children: null,
            },
            {
                id: "home-order",
                name: "确认订单",
                path: "/goods/order",
                loader: "./components/home-order.js",
                children: null,
            },
            {
                id : "home-payment",
                name : "支付",
                path : "/goods/payment",
                loader:"./components/goodpages/payment.js",
                children : null,
            },
            {
                id : "home-commend",
                name : "支付",
                path : "/goods/commend",
                loader:"./components/goodpages/product-commend-page.js",
                children : null,
            },
        ]
    },
    {
        id: "category",
        name: "分类",
        path: '/category',
        loader: "./components/category.js",
        children: null,
    },
    {
        id : "car",
        name : "购物车",
        path: "/car",
        loader: "./components/car.js",
        children: null,

    },
    {
        id: "my",
        name: "我的",
        path: '/my',
        loader: "./components/my.js",
        children: [
            {
                id: "center",
                name: "领券中心",
                path: "coupon/list",
                loader: "/src/components/my/coupon-center.js",
                children: null
            },
            {
                id: "nouse",
                name: "已领取",
                path: "p1",
                loader: "/src/components/my/nouse.js",
                children: null
            },
            {
                id: "useend",
                name: "已使用",
                path: "p2",
                loader: "/src/components/my/useend.js",
                children: null
            },
            {
                id: "out",
                name: "已失效",
                path: "p3",
                loader: "/src/components/my/out.js",
                children: null
            }
        ],
    }

]